//
//  RoomTable_iPad.h
//  PokerPlus
//
//  Created by sunrui-MacBook on 11-8-9.
//  Copyright 2011 139.ME. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"


@interface RoomTable_iPad : UIView {

	IBOutlet UIImageView * tableImageView;
	IBOutlet UIImageView * clockImageView;
	NSTimer * clock;int clocktime;
	int isFast;
	
	IBOutlet UIButton * tableBtn1;
	IBOutlet UIButton * tableBtn2;
	IBOutlet UIButton * tableBtn3;
	IBOutlet UIButton * tableBtn4;
	IBOutlet UIButton * tableBtn5;
	IBOutlet UIButton * tableBtn6;
	IBOutlet UIButton * tableBtn7;
	IBOutlet UIButton * tableBtn8;
	IBOutlet UIButton * tableBtn9;
	
	IBOutlet UIButton * btnViewBtn1;
	IBOutlet UIButton * btnViewBtn2;
	IBOutlet UIButton * btnViewBtn3;
	IBOutlet UIButton * btnViewBtn4;
	IBOutlet UIButton * btnViewBtn5;
	IBOutlet UIButton * btnViewBtn6;
	
	IBOutlet UIButton * standUp;	

	SocketEngine * socketLogin;
	LoginEventListener * eventLogin;
	
	UpdateDesk deskInfo;
	UpdateDesk deskInfoLast;
	
	 UIImageView * tempImage1[9],*tempImage2[9];
	BOOL _showPoker;
    
	
}
@property UpdateDesk deskInfo;
@property UpdateDesk deskInfoLast;

-(IBAction)buttonPressed:(UIButton *)sender;
-(IBAction)btnViewButtonPressed:(UIButton *)sender;

-(IBAction)StandUp;
-(void)tableAppear;
-(void)tableDisAppear;
-(void)animatePoker:(int)seatNumber :(int)poker1 :(int)poker2;
-(void)animateClock:(int)seatNumber;
-(void)stopClock;
-(void)resetAll;
- (void)UserOnTable;
-(void)showPoker;

-(void)btnViewBtnUnselect;
-(void)btnViewBtnExecute:(int)Message withComand:(int)Command andChipsData:(long long)data;

//-(void)OnSitDown:(SocketEngine *)socket;
//-(void)OnSitDownFailure:(SocketEngine *)socket;
//-(void)OnStandUp:(SocketEngine *)socket;
@end
